package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_shop")
public class ShopBean {
    @TableId(value = "pk_shopId",type = IdType.AUTO)
    private Integer id;
    @TableField("s_name")
    private String name;
    @TableField("s_img")
    private String img;
    @TableField("s_price")
    private Integer price;
    @TableField("s_userName")
    private String userName;

    public ShopBean() {
    }

    public ShopBean(String name, String img, Integer price, String userName) {
        this.name = name;
        this.img = img;
        this.price = price;
        this.userName=userName;
    }
}
